﻿using System;
using System.Collections.Specialized;
using System.Configuration;
using System.Web;
using System.Web.Mvc;

namespace Mailias.UI.Web.Controllers
{
    public class SettingsController : Controller
    {
        //
        // GET: /Settings/

        public string SMTPListenAddress()
        {
            HttpContext.Response.Cache.SetCacheability(HttpCacheability.Public);
            HttpContext.Response.Cache.SetExpires(DateTime.Now.AddDays(14));

            return ViewBag.Address;
        }

        public string SMTPListenPort()
        {
            HttpContext.Response.Cache.SetCacheability(HttpCacheability.Public);
            HttpContext.Response.Cache.SetExpires(DateTime.Now.AddDays(14));

            return ViewBag.Port;
        }
    }
}
